Skip to content

Conversation

@ethrealSpectre
Copy link

@ethrealSpectre ethrealSpectre commented Feb 5, 2026

closes: #1531

Test

e2e/tests/settings/administrator/payment-details.spec.ts:22:3 › Company administrator settings - payment details › allows connecting a bank account
https://github.com/antiwork/flexile/actions/runs/20915820205/job/60089005090#step:12:270

Problem

The test allows connecting a bank account was failing in CI with a 60s timeout. The locator getByLabel("Test Institution") was stuck waiting for an element that does not exist in the current Stripe test mode UI.

Solution

  • Replaced the broken label selector with a deterministic Search-and-Select workflow (Search "Test" -> Click "Test (Non-OAuth)").
  • Added explicit timeout: 60000 to Stripe iframe assertions to handle slow loading in CI.
  • Switched from UI-based menu navigation to direct page.goto("/settings/administrator/billing").

Screenshot

Screenshot from 2026-02-04 20-01-38

AI Disclosure

I have used Opus 4.5 to understand issue.

@ethrealSpectre
Copy link
Author

@nyomanjyotisa PTAL.

Copy link
Member

@nyomanjyotisa nyomanjyotisa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This not fix the issue, the issue is there is no "Test Institution" in the Stripe ifram

Image

You can see this failing test screenshot and video here
https://github.com/antiwork/flexile/actions/runs/20915820205/job/60089005090#step:13:28

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fix flaky tests

2 participants